#ifndef BEGINREDIRECTORICONNHANDLER_H
#define BEGINREDIRECTORICONNHANDLER_H

#include "BeginConnectOriDestHandler.h"
#include "InsteadHttpUrl.h"

class BeginRedirectOriConnHandler:public BeginConnectOriDestHandler
{
public:
	BeginRedirectOriConnHandler(const InsteadHttpUrl &url):BeginConnectOriDestHandler(),m_redirectUrl(url){}

	~BeginRedirectOriConnHandler(){}

protected:
	virtual const std::string& DestinationServerName(ClientContext&);

	virtual const unsigned short DestinationServerPort(ClientContext&);

private:
	InsteadHttpUrl m_redirectUrl;
};

#endif